﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<?php
	include_once('DAO/TaiKhoanDTO.php');
	include_once('DAO/TaiKhoanDAO.php');
	include_once('BUS/NguoiBanBUS.php');
//	session_start();
	//$_SESSION['IsLogin']=true;
	//$_SESSION['UserName']='lvhung';
?>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Shoppinghere</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Mạng xã hội mua bán siêu việt | ShoppingHere.com</title>
		<link rel="stylesheet" href="css/reset.css" type="text/css" />
		<link rel="stylesheet" href="css/common.css" type="text/css" />
		<link rel="stylesheet" href="css/home.css" type="text/css" />
		<script src="scripts/jquery-1.5.2.min.js"></script>
		<script src="scripts/common.js"></script>
		<link rel="stylesheet" href="css/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />
		<link rel="stylesheet" href="css/MenuMatic2.css" type="text/css" media="screen" charset="utf-8" />
	</head>
	<body>
		<div id="page">
			<?php
				include_once("webconfig.php");
				include_once("DAO/DataHelper.php");
				include_once("DAO/TaiKhoan_DAO.php");
				include_once("DAO/DanhMucSanPham_DAO.php");
				include_once("DAO/SanPham_DAO.php");
				include_once("DAO/DataHelper.php");
				include_once("UserControl/header.php");
				
			?>
			<div id="content">
				<?php
					require("UserControl/DanhMucLoaiSanPham.php");
				?>
				
				<div id="seller-info" class="block layout-2col-col2" style="width:830px">
					<div class="title"><h4>Thông tin cá nhân</h4></div>
					<div class="content">
<?php
	$username = $_SESSION['UserName'];
	$taikhoan = new TaiKhoanDTO();
	$taikhoan = NguoiBanBUS::LayThongTinNguoiBan($username);
?>
						<img class="avatar" src="images/<?php echo $taikhoan->tk_avatar ?>" style="width: 200px; float: left; margin-right: 20px" />

						<table>
							<tbody>								
								<tr>
									<td class="label-col"><label>Tên đăng nhập</label></td>
									<td><span><?php echo $taikhoan->tk_username ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Ngày tạo</label></td>
									<td><span><?php echo $taikhoan->tk_ngay_tao ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Email</label></td>
									<td><span><?php echo $taikhoan->tk_email ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Họ tên</label></td>
									<td><span><?php echo $taikhoan->tk_ho_ten ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Giới tính</label></td>
									<td><span><?php
									 if($taikhoan->tk_gioi_tinh == 0)
									 {
									 	echo ("Nữ");
									 }
									 else
									 {
									 	echo ("Nam");
									 }
									 ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Địa chỉ</label></td>
									<td><span><?php echo $taikhoan->tk_dia_chi ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Điện thoại</label></td>
									<td><span><?php echo $taikhoan->tk_dien_thoai ?></span></td>
								</tr>
								<tr>
									<td class="label-col"><label>Loại tài khoản</label></td>
									<td><span><?php
									 if($taikhoan->tk_loai == 0)
									 {
									 	echo ("Người Bán");
									 }
									 else
									 {
									 	echo ("Người Mua");
									 }
									 ?></span></td>
								</tr>
								<tr>
									<td class="label-col"></td>
									<td><input type="button" class="btn" value="Thay đổi" onclick="parent.location='capnhattaikhoan.php'" /></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div id="footer">
				<p>&copy; 2011 - Nhóm Ứng Dụng Phân Tán 1 - ĐHKHTN. All rights reserved.</p>
			</div>
		</div>
	</body>
</html>